using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._CartographyTools._Generalization
{
    /// <summary>
    /// <para>Collapse Road Detail</para>
    /// <para>Collapses small, open  configurations of road segments that interrupt the general trend of a road network, such as traffic circles, and replaces them with a simplified depiction.</para>
    /// <para>折叠中断道路网络总体趋势（如交通圈）的小型开放路段配置，并将其替换为简化的描绘。</para>
    /// </summary>    
    [DisplayName("Collapse Road Detail")]
    public class CollapseRoadDetail : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CollapseRoadDetail()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para>The input features containing small enclosed road details, such as traffic circles, to be collapsed.</para>
        /// <para>包含要折叠的小型封闭道路细节（例如交通圈）的输入要素。</para>
        /// </param>
        /// <param name="_collapse_distance">
        /// <para>Collapse Distance</para>
        /// <para>The diameter of, or distance across, the road detail that will be considered for collapse.</para>
        /// <para>将考虑坍塌的道路细节的直径或跨度。</para>
        /// </param>
        /// <param name="_output_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The output feature class containing the collapsed features—features that were modified to accommodate the collapse—and all unaffected features.</para>
        /// <para>包含折叠要素（为适应折叠而修改的要素）和所有未受影响的要素的输出要素类。</para>
        /// </param>
        public CollapseRoadDetail(object _in_features, string? _collapse_distance, object _output_feature_class)
        {
            this._in_features = _in_features;
            this._collapse_distance = _collapse_distance;
            this._output_feature_class = _output_feature_class;
        }
        public override string ToolboxName => "Cartography Tools";

        public override string ToolName => "Collapse Road Detail";

        public override string CallName => "cartography.CollapseRoadDetail";

        public override List<string> AcceptEnvironments => ["cartographicPartitions", "referenceScale"];

        public override object[] ParameterInfo => [_in_features, _collapse_distance, _output_feature_class, _locking_field];

        /// <summary>
        /// <para>Input Features</para>
        /// <para>The input features containing small enclosed road details, such as traffic circles, to be collapsed.</para>
        /// <para>包含要折叠的小型封闭道路细节（例如交通圈）的输入要素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Collapse Distance</para>
        /// <para>The diameter of, or distance across, the road detail that will be considered for collapse.</para>
        /// <para>将考虑坍塌的道路细节的直径或跨度。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Collapse Distance")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public string? _collapse_distance { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The output feature class containing the collapsed features—features that were modified to accommodate the collapse—and all unaffected features.</para>
        /// <para>包含折叠要素（为适应折叠而修改的要素）和所有未受影响的要素的输出要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _output_feature_class { get; set; }


        /// <summary>
        /// <para>Locking Field</para>
        /// <para>The field that contains locking information for the features. A value of 1 indicates that a feature will not be collapsed.</para>
        /// <para>包含要素锁定信息的字段。值为 1 表示要素不会折叠。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Locking Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _locking_field { get; set; } = null;


        public CollapseRoadDetail SetEnv(object cartographicPartitions = null, object referenceScale = null)
        {
            base.SetEnv(cartographicPartitions: cartographicPartitions, referenceScale: referenceScale);
            return this;
        }

    }

}